package com.example.xadmin.common;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

@Data
public class Pageable {

    private Integer page;

    private Integer limit;


    public Page toPage(){
        Page page = new Page();
        page.setCurrent(this.page);
        page.setSize(this.limit);
        return page;
    }


}
